export function parseJWT(token) {
        let strings = token.split(".")
        var userinfo = JSON.parse(decodeURIComponent(escape(window.atob(strings[1].replace(/-/g, "+").replace(/_/g, "/")))))
        return userinfo
    }
export function getRandomNumber(min,max){
        var random = parseInt(Math.random() * (max - min)) + min
        return random
    }
export function getOne(token){
        let strings = token.split(".")
        return strings[0]
    }
export function getTwo(token){
        let strings = token.split(".")
        return strings[1]
    }   
export function getThree(token){
        let strings = token.split(".")
        return strings[2]
    }        
